luci-theme-openwrt-2020: use SVG-file for favicon and logo
authorSven Roederer <[email protected]>
Sat, 22 May 2021 23:43:44 +0000 (01:43 +0200)
committerSven Roederer <[email protected]>
Sat, 22 May 2021 23:54:05 +0000 (01:54 +0200)
Using the scalable graphic in place of the static png file saves some
ressources in flash and network. It also aligns the filetype to the type
announced to the browser.

fixes GitHub-issue #5051

Signed-off-by: Sven Roederer <[email protected]>
themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/favicon.png [deleted file]
themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm

diff --git a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/favicon.png b/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/favicon.png
deleted file mode 100644 (file)
index ee841e8..0000000
Binary files a/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/favicon.png and /dev/null differ
index 6370ee4d1f9c82376bebdd512eff190baee1ac3c..1cc84acbb1e0f8d2c921198380b264f4e211f823 100644 (file)
@@ -24,7 +24,7 @@
 <meta http-equiv="Content-Script-Type" content="text/javascript" />
 <meta name="viewport" content="width=device-width, initial-scale=1" />
 <link rel="stylesheet" type="text/css" media="screen" href="<%=media%>/cascade.css" />
-<link rel="icon" href="<%=media%>/favicon.png" type="image/svg+xml" />
+<link rel="icon" href="<%=media%>/logo.svg" type="image/svg+xml" />
 <script type="text/javascript" src="<%=url('admin/translations', luci.i18n.context.lang)%><%# ?v=PKG_VERSION %>"></script>
 <script type="text/javascript" src="<%=resource%>/cbi.js"></script>
 <title><%=striptags( (boardinfo.hostname or "?") .. ( (node and node.title) and ' - ' .. translate(node.title) or '')) %> - LuCI</title>